package com.flower.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import tk.mybatis.mapper.common.Mapper;

import com.flower.entity.Admin;

/**
 * AdminMapper 数据访问接口
 *
 *
 */
public interface AdminMapper extends Mapper<Admin>{

    /**
     * slect * from a where name like
     * @param username
     * @param password
     */
    @Update("UPDATE admin SET password =#{password} WHERE name=#{username} ")
    void updateByUsername(@Param("username") String username, @Param("password")String password);
}